<%@page contentType="text/html; charset=utf-8"%>
<div class="table-list">
			<c:set var="hasPreTbl" value="N" />
			<c:if test="${record.hasAreaItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="12%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="12%" >材质</th>
					<th width="12%" >规格</th>
					<th width="13%" >制作要求</th>
					<th width="7%" >数量</th>
					<th width="7%" >平方数</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<th width="7%" >单价</th>
						<th width="9%" >金额</th>
					</c:if>
					<th width="4%">外协</th>
					<th width="4%">安装</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<th width="16%">工作中心</th>
					</c:if>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.businessBillItem.priceType=='AREA'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.finishedContent}" /></td>
					<td>${item.businessBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.makeRequire}" /></td>
					<td><commonTag:parseBigDecimal source="${item.businessBillItem.amount}" /></td>
					<td><commonTag:parseBigDecimal source="${item.businessBillItem.squareNum}" /></td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.unitPrice}" /></td>
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.cost}" /></td>
					</c:if>
					<td><c:if test="${item.businessBillItem.isCoop=='Y'}">是</c:if></td>
					<td><c:if test="${item.businessBillItem.isSetu=='Y'}">是</c:if></td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<td><commonTag:showSimpleObjectName list="${workCenterList}" objectId="${item.businessBillItem.wcId}" /></td>
					</c:if>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
		  
		  <c:if test="${record.hasLengthItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="12%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="12%" >材质</th>
					<th width="12%" >规格</th>
					<th width="13%" >制作要求</th>
					<th width="7%" >数量</th>
					<th width="7%" >总长度</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<th width="7%" >单价</th>
						<th width="9%" >金额</th>
					</c:if>
					<th width="4%">外协</th>
					<th width="4%">安装</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<th width="16%">工作中心</th>
					</c:if>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.businessBillItem.priceType=='LENGTH'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.finishedContent}" /></td>
					<td>${item.businessBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.makeRequire}" /></td>
					<td><commonTag:parseBigDecimal source="${item.businessBillItem.amount}" /></td>
					<td>
						<commonTag:parseBigDecimal source="${item.businessBillItem.squareNum}" />
						<c:if test="${item.businessBillItem.lengType=='M'}">米</c:if><c:if test="${item.businessBillItem.lengType=='CM'}">公分</c:if>
					</td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.unitPrice}" /></td>
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.cost}" /></td>
					</c:if>
					<td><c:if test="${item.businessBillItem.isCoop=='Y'}">是</c:if></td>
					<td><c:if test="${item.businessBillItem.isSetu=='Y'}">是</c:if></td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<td><commonTag:showSimpleObjectName list="${workCenterList}" objectId="${item.businessBillItem.wcId}" /></td>
					</c:if>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
		  
		  <c:if test="${record.hasAmountItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="12%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="12%" >材质</th>
					<th width="12%" >规格</th>
					<th width="13%" >制作要求</th>
					<th width="7%" >单位</th>
					<th width="7%" >数量</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<th width="7%" >单价</th>
						<th width="9%" >金额</th>
					</c:if>
					<th width="4%">外协</th>
					<th width="4%">安装</th>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<th width="16%">工作中心</th>
					</c:if>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.businessBillItem.priceType=='AMOUNT'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.finishedContent}" /></td>
					<td>${item.businessBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.businessBillItem.makeRequire}" /></td>
					<td>${item.businessBillItem.unit}</td>
					<td><commonTag:parseBigDecimal source="${item.businessBillItem.amount}" /></td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE!='SIMPLE'}">
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.unitPrice}" /></td>
						<td><commonTag:parseBigDecimal source="${item.businessBillItem.cost}" /></td>
					</c:if>
					<td><c:if test="${item.businessBillItem.isCoop=='Y'}">是</c:if></td>
					<td><c:if test="${item.businessBillItem.isSetu=='Y'}">是</c:if></td>
					<c:if test="${BUSINESS_BILL_ITEM_LIST_TYPE=='SIMPLE'}">
						<td><commonTag:showSimpleObjectName list="${workCenterList}" objectId="${item.businessBillItem.wcId}" /></td>
					</c:if>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
</div>